@import '../../../core/index.less';

.orin-w-createguide-root {
    padding: 0;
    margin: 0;
    .create-guide-mask {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: auto;
        transition: all .5s;
        transform: translate(0, 100%);
        &.show {
            transform: translate(0, 0);
        }
        .fix-bottom-btn-wrapper {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            width: 100%;
            z-index: 10;
            background: @light-blue-color;
            height: 50/@remScale;
            line-height: 50/@remScale;
            text-align: center;
            color: @white;
            font-size: 16/@remScale;
        }
        .create-guide-wrapper {
            width: 100%;
            height: 100%;
            overflow-y: hidden;
            //-webkit-overflow-scrolling: touch;
            position: relative;
            .logo-wrapper {
                position: absolute;
                top: 16/@remScale;
                left: 20/@remScale;
                .logo-image {
                    width: 108/@remScale;
                }
            }
            .close-wrapper {
                position: absolute;
                top: 16/@remScale;
                right: 20/@remScale;
                color: @white;
            }
            .next-wrapper{
                position:absolute;
                bottom:90/@remScale;
                left:50%;
                margin-left: -15/@remScale;
                width:30/@remScale;
                height:30/@remScale;
                border-radius:50%;
                background: @white;
                //display: flex;
                align-items: center;
                justify-content: center;
                display: none;
                box-shadow: 0 0 4/@remScale rgba(0, 0, 0, 0.3);
                .icon{
                    width:12/@remScale;
                    height:12/@remScale;
                    color: @light-blue-color;
                }
            }

            .first-page {
                width: 100%;
                height: 100%;
                display: flex;
                flex-direction: column;
                background: -webkit-gradient(linear, 0 0, 0 100%, from(#81898e), to(#d9e4eb));
                .top {
                    flex: 1;
                    width: 100%;
                    padding: 20/@remScale 0;
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    justify-content: center;
                    .text-image {
                        width: 80%;
                        display: block;
                    }
                    .group-image {
                        width: 55%;
                        display: block;
                    }
                    .landscape-group-image {
                        display: none;
                    }
                }
                .bottom {
                    width: 100%;
                    .bottom-image {
                        width: 100%;
                        vertical-align: middle;
                    }
                }
            }
            .second-page {
                width: 100%;
                height: 100%;
                display: flex;
                flex-direction: column;
                background: -webkit-gradient(linear, 0 0, 0 100%, from(#D9DDE0), to(#EFF4F7));
                .text-wrapper {
                    .text-image {
                        width: 55%;
                        display: block;
                        margin: 40/@remScale auto 20/@remScale;
                    }
                    .text-image-v{
                        display:none;
                    }
                }
                .img-wrapper {
                    overflow: hidden;
                    //position: relative;
                    flex: 1;
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    align-items: center;
                    .dot-wrapper {
                        text-align: center;
                        width: 60%;
                        height: 40/@remScale;
                        line-height: 40/@remScale;
                        display: flex;
                        background: @white;
                        box-shadow:0 6/@remScale 12/@remScale 0 rgba(0,0,0,0.1);
                        .dot {
                            flex: 1;
                            height: 40/@remScale;
                            display: inline-block;
                            cursor: pointer;
                            font-size: 15/@remScale;
                            color: #acb2b7;
                            &.active {
                                border-bottom: 2/@remScale solid @light-blue-color;
                                color: @light-blue-color;
                            }
                        }
                    }
                    .slider-wrapper {
                        flex:1;
                        width:100%;
                        position:relative;
                        background-image: url("/assets/images/components/widgets/CreateGuide/images/bg.png");
                        background-position: 100% 30%;
                        background-repeat: no-repeat;
                        background-size: 100% 80% ;
                        .slide-img {
                            float: left;
                            box-sizing: border-box;
                            overflow: hidden;
                            text-align: center;
                            width: 100%;
                            height: 100%;
                            cursor: pointer;
                            white-space: nowrap;
                            .guide-banner {
                                float: left;
                                box-sizing: border-box;
                                overflow: hidden;
                                //text-align: center;
                                width: 100%;
                                height: 100%;
                                cursor: pointer;
                                display: flex;
                                align-items: center;
                                justify-content: center;
                                //margin-top: 10/@remScale;
                                .img-wrap{
                                    width:350/@remScale;
                                    height:350/@remScale;
                                    @media(max-width: 320px){
                                        width:300/@remScale;
                                        height:300/@remScale;
                                    }
                                    img {
                                        width: 100%;
                                        height: 100%;
                                        object-fit: cover;
                                    }
                                }
                            }
                        }
                    }

                }
            }
        }
        @media (orientation: landscape) and (max-height: 500px) {
            .create-guide-wrapper {
                .next-wrapper{
                    z-index: 2;
                }
                .first-page {
                    .top {
                        .text-image {
                            width: 215/@remScale;
                        }
                        .group-image {
                            display: none;
                        }
                        .landscape-group-image {
                            width: 480/@remScale;
                            display: block;
                        }
                    }
                    .bottom {
                        height: 173/@remScale;
                        overflow: hidden;
                        position: relative;
                        .bottom-image {
                            width: 409/@remScale;
                            display: block;
                            z-index: 1;
                            position: absolute;
                            left: 50%;
                            transform: translate(-50%);
                        }
                        .bottom-cover {
                            position: absolute;
                            left: 0;
                            right: 0;
                            bottom: 0;
                            background: #dddddd;
                            height: 72/@remScale;
                        }
                    }
                }
                .second-page{
                    flex-direction: row;
                    align-items: center;
                    .text-wrapper{
                        .text-image{
                            display: none;
                        }
                        .text-image-v{
                            display:block;
                            width:60/@remScale;
                            height: 60%;
                            margin: 0 40/@remScale;
                        }
                    }
                    .img-wrapper{
                        flex-direction: row;
                        justify-content:flex-start;
                        .dot-wrapper{
                            width:40/@remScale;
                            height:240/@remScale;
                            flex-direction: column;
                            z-index: 2;
                            //position: absolute;
                            //left:0;
                            .dot{
                                width:40/@remScale;
                                height:80/@remScale;
                                line-height: 40/@remScale;
                                margin: 0 auto;
                                writing-mode: vertical-lr;
                                &.active {
                                    border-bottom: 0;
                                    border-right: 2/@remScale solid @light-blue-color;
                                    color: @light-blue-color;
                                }
                            }
                        }
                        .slider-wrapper{
                            background-size: 90% 80% ;
                            .slide-img{
                                .guide-banner{
                                    margin-top: 0;
                                    .img-wrap{
                                        width:300/@remScale;
                                        height:300/@remScale;
                                        img{
                                            width:100%;
                                            height:100%;
                                            object-fit: cover;
                                        }
                                    }

                                }
                            }
                        }
                    }
                }
            }
        }
    }

}